-- CALC_SOUL_BONUS
-- 残骸的灵魂奖励

return function(randomBonus)
    local seed = DungeonM.getRandSeed("CALC_SOUL_BONUS");
    local ret = {};
    if type(randomBonus) ~= "table" or #randomBonus == 0 then
        return ret;
    end

    -- 给予随机奖励
    local classId = FormulaM.invoke("FETCH_BY_RAND", randomBonus, seed);
    table.insert(ret, {1, classId, 1} );

    return ret;
end
